<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${web_title!meta_keywords}</title>
<meta name="description" content="${web_description!meta_description}" />
<meta name="keywords" content="${meta_keywords!meta_keywords}" />
<meta property="qc:admins" content="126201426074113363757" />
<link href="${webroot}${theme_dir}/media/css/base.css" rel="stylesheet">
<link href="${webroot}${theme_dir}/media/css/button.css" rel="stylesheet">
<link href="${webroot}${theme_dir}/media/css/style.css" rel="stylesheet">
<link href="${webroot}${theme_dir}/media/css/member.css" rel="stylesheet">

<script type="text/javascript" src="${webroot}${theme_dir}/media/js/jquery.js"></script>
<script src="${webroot}${theme_dir}/media/js/sea.js"></script>
<script src="${webroot}${theme_dir}/media/js/seajs-text.js"></script>
<script>
var webroot = "${webroot}",theme = "${webroot}${theme_dir}";    
$(function(){
    seajs.use("${webroot}${theme_dir}/media/js/init",function(){        
    })
});
if(opener){
    opener.location.reload();
}
</script>
</head>
<body>
<#assign nid="member">
<#include "../include/header.html"> 
<div id="main" class="clearfix">
	<div class="sysTips">
		<h1>系统提示信息</h1><!-- xubox_loading2 -->
		<div class="sysTipsTxt"><img src="${webroot}${theme_dir}/media/css/images/xubox_loading8.gif" /><span class="font1">客官请稍等片刻，小二拼命处理中…………</span></div>
		<div class="sysTipsBtns"></div>
	</div>
</div>
<script type="text/javascript"> 
var timer =  setInterval("testTime()",500); 
var reqTimesLimit = 100;
var reqTimes = 1;
function testTime() {
	 $.ajax({
                type: "post",//使用get方法访问后台
                dataType: "json",//返回json格式的数据
                async:false,
                url: "/public/getResult.html?randomTime=" + (new Date()).getTime(),//要访问的后台地址
                data: "resultFlag=" + '${resultFlag!}',//要发送的数据
                timeout:1000*1,
                success: function(msg){//msg为返回的数据，在这里做数据绑定
                    var data = msg.msg_data;
                    reqTimes++;
                    if(reqTimes>=reqTimesLimit){
                              $(".sysTipsTxt").html("服务器响应过慢，请您1分钟后查看");
                              clearInterval(timer);
                    };
                    if(data){
                   	 if(data == 'success'){
                       		 $(".sysTipsTxt").html("${r_msg!}");
                       		 var htmlStr = '';
                           	 if('${left_msg!}' !=null && '${left_msg!}' != ''){
                           		htmlStr += "<a href='${left_url!}'>${left_msg!}</a>";
                           	 }
                           	 if('${m_msg!}' !=null && '${m_msg!}' != ''){
                           		htmlStr += "<a href='${m_url!}'>${m_msg!}</a>";
                           	 }
                           	 if('${right_msg!}' !=null && '${right_msg!}' != ''){
                           		htmlStr += "<a href='${right_url!}'>${right_msg!}</a>";
                           	 }
                           	<#if close?? && close = 1>
                   				$(".sysTipsBtns").html("<a href='javascript:history.go(-1);'>关闭</a>");
                   			<#else>
                           		$(".sysTipsBtns").html(htmlStr);
                   			</#if>
                        }else{
                               	$(".sysTipsTxt").html(data);
                            	<#if close?? && close = 1>
                            	$(".sysTipsBtns").html("<a href='javascript:history.go(-1);'>关闭</a>");
                           		<#else>
                           			$(".sysTipsBtns").html("<a href='${back_url!}'>返回</a>");
                           		</#if>
                        } 
                        clearInterval(timer);
                    }
                },
                 error:function(XMLHttpRequest){
               		$(".sysTipsTxt").html("服务器响应过慢，请您1分钟后查看");
                      clearInterval(timer);
                }
    });
} 
</script>
<#include "../include/footer.html"> 
</body>
</html>
